<?php
/*session_start();
var_dump($_SESSION); // Affiche les informations de session*/
require("controleur/config_bdd.php");
// si la session existe pas soit si l'on est pas connecté on redirige
if(!isset($_SESSION['admin_ve'])){
    header('Location:ConnecterAdmin.php');
    die();
}

// On récupere les données de l'utilisateur
$req = $bdd->prepare('SELECT * FROM admin_ve WHERE token_admin = ?');
$req->execute(array($_SESSION['admin_ve']));
$data = $req->fetch();
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="Connexion-style.css">
        <link rel="stylesheet" href="style.css">
        <link rel="stylesheet" href="Admin.css">
        <link rel="shortout icon" type="image/x-icon" href="Art_Yoshi_Ultimate.png"/>
        <title>Inscription</title>


        <!--link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap" rel="stylesheet"-->
        <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/brands.min.css"-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/brands.min.css" integrity="sha512-8RxmFOVaKQe/xtg6lbscU9DU0IRhURWEuiI0tXevv+lXbAHfkpamD4VKFQRto9WgfOJDwOZ74c/s9Yesv3VvIQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/regular.min.css"-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/regular.min.css" integrity="sha512-TzeemgHmrSO404wTLeBd76DmPp5TjWY/f2SyZC6/3LsutDYMVYfOx2uh894kr0j9UM6x39LFHKTeLn99iz378A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/solid.min.css"-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/solid.min.css" integrity="sha512-pZlKGs7nEqF4zoG0egeK167l6yovsuL8ap30d07kA5AJUq+WysFlQ02DLXAmN3n0+H3JVz5ni8SJZnrOaYXWBA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/svg-with-js.min.css"-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/svg-with-js.min.css" integrity="sha512-1dRVqjH1H79nqU3U7EhqE0E6G25FHVEqfoChIwiXBLk32sOWc6ZrgDzPax1VRuBr+NJknIO6B27MdlahVuZSRA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/v4-font-face.min.css"-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/v4-font-face.min.css" integrity="sha512-vU8GapgME7Cc/sHTwbn2Q1eMBgE/ZBU8JL/oRo+Cw/frBXtmeekNEYbNe2gezj/cPaSdkTdERyimVSb+2F6f0A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/v4-shims.min.css"-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/v4-shims.min.css" integrity="sha512-u6rY9/wehqytU8mKIhPvMDHtZmj6SbJ90Ctq8r5C+esABLe7qlQ2PY4l9gwK7xmr9fMp7d8yHvg2s3+nEsRjOg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/v5-font-face.min.css"-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/v5-font-face.min.css" integrity="sha512-DG+gORwHSOHlIRwrUl2peOlG9vcxDg8qnbI1WkCfttaERikRSgrRoDeDa1PK4uZD24IJwAeKb6TuQk+/15b66A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!--script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/js/all.min.js" integrity="sha512-GWzVrcGlo0TxTRvz9ttioyYJ+Wwk9Ck0G81D+eO63BaqHaJ3YZX9wuqjwgfcV/MrB2PhaVX9DkYVhbFpStnqpQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script-->
    <!--script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/js/brands.min.js" integrity="sha512-giAmE8KpCT6HP3DEwIvW9LYVnDs79iIaKEYFTjH62EWoglWgdAJa1ahiLUfoc3NFaAeWM6E3VdQyH1Ob2dmwQw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script-->
    <!--script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/js/conflict-detection.min.js" integrity="sha512-7GbltvPUq7IRdFGoi+LQVL+KNVnVDfWcyxz9BfsGXwpOuqBysP/kPOYut4RfSipXadO8CL9oT4SzzN9aPMmeYg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script-->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/js/fontawesome.min.js" integrity="sha512-C8qHv0HOaf4yoA7ISuuCTrsPX8qjolYTZyoFRKNA9dFKnxgzIHnYTOJhXQIt6zwpIFzCrRzUBuVgtC4e5K1nhA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <!--script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/js/regular.min.js" integrity="sha512-T4H/jsKWzCRypzaFpVpYyWyBUhjKfp5e/hSD234qFO/h45wKAXba+0wG/iFRq1RhybT7dXxjPYYBYCLAwPfE0Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script-->
    <!--script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/js/solid.min.js" integrity="sha512-+fI924YJzeYFv7M0R29zJvRThPinSUOAmo5rpR9v6G4eWIbva/prHdZGSPN440vuf781/sOd/Fr+5ey0pqdW9w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script-->
    <!--script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/js/v4-shims.min.js" integrity="sha512-lcumC2XgVQA+cNJaYBRtZcTJ88EZ/Na2rG2yKtasO44flXlQWjvaqBqJch22AG9t/4pfD1EVD49oW8PBxtWBWg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script-->
    <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-ZksRGFnwop1QG0mG8r+vj9U4+LGoW25vO5h9Gl5x/wxa2RCQpTwKboVAeKN4W+VqS8X3QQYkmPfS0a16/s+19g==" crossorigin="anonymous" referrerpolicy="no-referrer" /-->
    
</head>
    <body>
        <div class="logo-acceuil logo-accueil-pr">
            <a href="index.html"><img src="logo.png" alt="logo"></a>
        </div>
        <div class="profil-container">
            <div class="presentation-case">
                <div class="avatar-case"><img src="img pr/Avatar.png" alt="Avatar"></div>
                <div class="presentation">
                    <h1>Bonjour <em><?php echo $data['prenom_admin']; ?></em></h1> 
                    <p>Vous travailler avec nous depuis 3 ans déjà en tant que <?php echo $data['statue_admin']; ?></p> 
                </div>
                <div class="input-btn">
                    <button class="button-input button-input-deconx"><a href="deconnexion.php">Déconnexion</a></button>
                </div>
            </div>
            <div class="commande">
                <div class="detail-user">
                    <ul class="alldetail-user">
                        <li class="o1detail-user">
                            <a href="http://" class="clk-choos">
                                <h3>Ajouter un utilisateur</h3>
                                <span>Ajouter, Modifier, Supprimer</span>
                            </a>
                        </li>
                        <li class="o1detail-user">
                            <a href="http://" class="clk-choos">
                                <h3>Voir utilisateurs</h3>
                                <span>Consulter les utilisateurs que j'ai avez ajoutez</span>
                            </a>
                        </li>
                        <li class="o1detail-user">
                            <a href="http://" class="clk-choos">
                                <h3>Voir clients</h3>
                                <span>Consulter les clients qui sont inscrit</span>
                            </a>
                        </li>
                        <li class="o1detail-user">
                            <a href="http://" class="clk-choos">
                                <h3>Ajouter un categorie</h3>
                                <span>Ajouter, Modifier, Supprimer</span>
                            </a>
                        </li>
                        <li class="o1detail-user">
                        <a href="http://" class="clk-choos">
                            <h3>Ajouter un produit</h3>
                            <span>Ajouter, Modifier, Supprimer</span>
                        </a>
                        </li>
                        <li class="o1detail-user">
                        <a href="http://" class="clk-choos">
                            <h3>Voir categorie</h3>
                            <span>Email, mot de passe...</span>
                        </a>
                        </li>
                        
                        <li class="o1detail-user">
                        <a href="http://" class="clk-choos">
                            <h3>Voir produit</h3>
                            <span>Consulter mes messages</span>
                        </a>
                        </li>
                        <!--li class="o1detail-user">
                            <h3>Mes commande</h3>
                            <span>Suivre, annuler, retourner</span>
                        </li>
                        <li class="o1detail-user">
                            <h3>Mes demandes</h3>
                            <span>Consulter l'avancement de mes dossiers</span>
                        </li>
                        <li class="o1detail-user">
                            <h3>Mes remboursement</h3>
                            <span>Consulter mes bons d'achat</span>
                        </li>
                        <li class="o1detail-user">
                            <h3>Mes information personnelles</h3>
                            <span>Email, mot de passe...</span>
                        </li>
                        <li class="o1detail-user">
                            <h3>Mes messages</h3>
                            <span>Consulter mes messages</span>
                        </li-->
                    </ul>
                </div>
                <?php
                    include('vue/option.php');
                ?>
                
            </div>
        </div>
        <script src="input-js.js"></script>
        <script src="show-pass.js"></script>
    </body>
</html>
